package com.xyzq.cgate.admin.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.IService;
import com.xyzq.cgate.common.entity.Rule;
import com.xyzq.cgate.common.rule.custom.entity.ComplexRule;

import java.io.UnsupportedEncodingException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chenchen
 * @since 2019-06-11
 */
public interface RuleService extends IService<Rule> {

    void insertDbAndZk(Rule rule) throws UnsupportedEncodingException;

    void updateDbAndZk(Rule rule, EntityWrapper<Rule> entityWrapper) throws UnsupportedEncodingException;

    void deleteDbAndZk(EntityWrapper<Rule> entityWrapper, Rule rule) throws UnsupportedEncodingException;

    void insertRuleDataToZk(Rule rule) throws UnsupportedEncodingException;

    void removeAllZkDataByParentPath(String parentPath);
}
